#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
int main()
{
	int n;
	scanf("%d", &n);
	for (int i = 1; i <= n; ++i)
	{
		for (int j = 1; j <= abs(n / 2 - i + 1);++j)
		{
			printf(" ");
		}
		if (i <= n / 2)
		{
			for (int j = 1; j <= 2 * i - 1;++j)
			{
				printf("*");
			}
		}
		else
		{
			for (int j = 1; j <= (n - i+1) * 2 - 1; ++j)
			{
				printf("*");
			}
		}
		printf("\n");
	}
	
	return 0;
}